package com.chutan.test;//路径不同的话，自行更改

import java.io.Serializable;
import java.util.Date;
/***
 *@title User
 *@description <TODO description class>
 *@author reps
 *@version 1.0.0
 *@create 2024/12/11 下午11:08
 **/
public class User {
    private Integer user_id;
    private String user_name;
    private Date birthday;
    private String sex;
    private String address; //注意，这里创建的数据类型都和数据库内表格的项相对应

    //对它们进行重构和重写
    public Integer getId() {
        return user_id;
    }
    public void setId(Integer user_id) {
        this.user_id = user_id;
    }
    public String getUsername() {
        return user_name;
    }
    public void setUsername(String user_name) {
        this.user_name = user_name;
    }
    public Date getBirthday() {
        return birthday;
    }
    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }
    public String getSex() {
        return sex;
    }
    public void setSex(String sex) {
        this.sex = sex;
    }
    public String getAddress() {
        return address;
    }
    public void setAddress(String address) {
        this.address = address;
    }
    @Override
    public String toString() {
        return "User{" +
                "id=" + user_id +
                ", username='" + user_name + '\'' +
                ", birthday=" + birthday +
                ", sex='" + sex + '\'' +
                ", address='" + address + '\'' +
                '}';
    }
}
